package cn.code.admin.model;
import com.baomidou.mybatisplus.annotations.TableField;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class AuthTbUser implements Serializable{
	
	private Integer id;
	private String name;
	private String salt;
	private String password;
	private Date createDatetime;
    @TableField(exist=false)
    private List<AuthTbUserGroup>	authTbUserGroups;
    @TableField(exist=false)
    private List<AuthTbMenu>	authTbMenus;
    @TableField(exist=false)
    private List<AuthTbRole>	authTbRoles;


	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getSalt() {
		return this.salt;
	}
	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getPassword() {
		return this.password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	public Date getCreateDatetime() {
		return this.createDatetime;
	}
	public void setCreateDatetime(Date createDatetime) {
		this.createDatetime = createDatetime;
	}

    public List<AuthTbUserGroup> getAuthTbUserGroup() {
       	 return this.authTbUserGroups;
    }

	public void setAuthTbUserGroup( List<AuthTbUserGroup> authTbUserGroups) {
		this.authTbUserGroups = authTbUserGroups;
	}
    public List<AuthTbMenu> getAuthTbMenu() {
       	 return this.authTbMenus;
    }

	public void setAuthTbMenu( List<AuthTbMenu> authTbMenus) {
		this.authTbMenus = authTbMenus;
	}
    public List<AuthTbRole> getAuthTbRole() {
       	 return this.authTbRoles;
    }

	public void setAuthTbRole( List<AuthTbRole> authTbRoles) {
		this.authTbRoles = authTbRoles;
	}

	@Override
	public String toString() {
		return "AuthTbUser{" +
				"id=" + id +
				", name='" + name + '\'' +
				", salt='" + salt + '\'' +
				", password='" + password + '\'' +
				", createDatetime=" + createDatetime +
				", authTbUserGroups=" + authTbUserGroups +
				", authTbMenus=" + authTbMenus +
				", authTbRoles=" + authTbRoles +
				'}';
	}
}
